package com.taotao.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @author wangjin
 * @title: MayiktApplicationEventPublisherAware
 * @projectName sw-gateway
 * @description:
 * @date 2021/12/8 15:24
 */
@Component
@Slf4j

public class MayiktApplicationEventPublisherAware implements ApplicationRunner {
    @Autowired
    private MayiktGatewayService mayiktGatewayService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        log.info("<开始初始化网关配置>");
        mayiktGatewayService.init();
        log.info("<结束初始化网关配置>");
    }

}
